import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'
import api from './common/api.js'
import CustomTabBar from './components/tabbar.vue'

import { createPinia } from 'pinia'
import { createSSRApp } from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	const pinia = createPinia()
	app.use(pinia) 
	app.use(uviewPlus)
	app.component('CustomTabBar', CustomTabBar)
	// 全局注册api
	app.config.globalProperties.$http = api
	return {
		app
	}
}